package com.woniu.user.feign;

import com.woniu.common.entity.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author author
 * @create 2021/5/27
 */
@FeignClient("punish-complaint-notice")
public interface PunishComplainNoticeFeign {

    //远程调用全部惩罚
    @RequestMapping("/findAllPunishment")
    PageResult<PunishmentRecord> findAllPunishment(@RequestParam("page") Integer page, @RequestParam("size") Integer size);

    //远程调用处罚记录
    @RequestMapping("/punishment")
    PageResult<PunishmentRecord> findPunishmentByUid(@RequestParam("u_id") Integer u_id, @RequestParam("page") Integer page, @RequestParam("size") Integer size);

    //修改领养状态
    @RequestMapping("/updateStatus")
    ResponseResult<String> updateStatus(@RequestParam("id") Integer id);

    //远程调用领养申请
    @PostMapping("/apply")
    ResponseResult<String> addAdoptApply(@RequestBody AdoptApply adoptApply);

    //远程调用领养信息
    @RequestMapping("/findAllAdopt")
    PageResult<Adopt> findAllAdopt(@RequestParam("page") Integer page, @RequestParam("size") Integer size);

}
